using System;
namespace MicroMsg.UI.Page
{
	public static class FBUris
	{
		private static string m_strAppID = "290293790992170";
		private static string m_strAppSecret = "6667e9307e67283c76028fd37189c096";
		private static string m_strLoginHomeURL = "http://www.facebook.com/";
		private static string m_strLoginURL = "https://graph.facebook.com/oauth/authorize?client_id={0}&redirect_uri=http://www.facebook.com/connect/login_success.html&display=touch&scope=publish_stream,user_hometown";
		private static string m_strGetAccessTokenURL = "https://graph.facebook.com/oauth/access_token?client_id={0}&redirect_uri=http://www.facebook.com/connect/login_success.html&client_secret={1}&code={2}";
		private static string m_strQueryUserURL = "https://graph.facebook.com/me?fields=id,name,gender,link,hometown,picture&locale=en_US&access_token={0}";
		private static string m_strLoadFriendsURL = "https://graph.facebook.com/me/friends?access_token={0}";
		private static string m_strLogoutURL = "http://facebook.com/logout.php?confirm=1&app_key={0}&session_key={1}&next=http://facebook.com/home.php";
		private static string m_strPostMessageURL = "https://graph.facebook.com/{0}/feed";
		public static Uri GetLoadFriendsUri(string strAccressToken)
		{
			return new Uri(string.Format(FBUris.m_strLoadFriendsURL, strAccressToken), 1);
		}
		public static Uri GetQueryUserUri(string strAccressToken)
		{
			return new Uri(string.Format(FBUris.m_strQueryUserURL, strAccressToken), 1);
		}
		public static Uri GetPostMessageUri(string userid)
		{
			return new Uri(string.Format(FBUris.m_strPostMessageURL, userid), 1);
		}
		public static Uri GetLoginUri()
		{
			return new Uri(string.Format(FBUris.m_strLoginURL, FBUris.m_strAppID), 1);
		}
		public static Uri GetTokenLoadUri(string strCode)
		{
			return new Uri(string.Format(FBUris.m_strGetAccessTokenURL, FBUris.m_strAppID, FBUris.m_strAppSecret, strCode), 1);
		}
		public static Uri GetLogoutUri(string strAccressToken)
		{
			return new Uri(string.Format(FBUris.m_strLogoutURL, FBUris.m_strAppID, strAccressToken), 1);
		}
	}
}
